package com.woniuxy.ticketsearch;

import com.woniuxy.ticketsearch.entity.Movie;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MovieRepostory extends ElasticsearchRepository<Movie,String> {
    List<Movie> findMoviesByNameOrActorOrDescription(String name,String actor,String description);

    List<Movie> findMoviesByName(String name);

    List<Movie> findMoviesByActor(String actor);

    List<Movie> findMoviesByDescription(String description);

}
